package day3;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class Message {
@Value("#{mydb.myusername}")
private String name;
@Value("20")
private Integer age;
@Autowired
@Qualifier("mylist")
private List<String> list;
@Autowired
@Qualifier("myset")
private Set<String>set;
@Autowired
@Qualifier("mymap")
private Map<String,String> map;
@Autowired
@Qualifier("myprop")
private Properties db;
public Message() {
	
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public Integer getAge() {
	return age;
}
public void setAge(Integer age) {
	this.age = age;
}
public List<String> getList() {
	return list;
}
public void setList(List<String> list) {
	this.list = list;
}
public Set<String> getSet() {
	return set;
}
public void setSet(Set<String> set) {
	this.set = set;
}
public Map<String, String> getMap() {
	return map;
}
public void setMap(Map<String, String> map) {
	this.map = map;
}
public Properties getDb() {
	return db;
}
public void setDb(Properties db) {
	this.db = db;
}
@Override
public String toString() {
	return "Message [name=" + name + ", age=" + age + ", list=" + list + ", set=" + set + ", map=" + map + ", db=" + db
			+ "]";
}

}
